package com.cswangdao.service;

import com.cswangdao.annotation.OperationLog;
import com.cswangdao.domain.dto.AdminPageDTO;
import com.cswangdao.domain.model.MarketAdmin;
import com.cswangdao.domain.po.Admin;
import com.cswangdao.domain.vo.AdminInfo;
import com.cswangdao.domain.vo.AdminPageVo;
import com.cswangdao.domain.vo.AdminVo;
import com.cswangdao.result.PageResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Map;

public interface AdminService {

    //@OperationLog(value = "用户登录")
    AdminVo login(Map<String, String> map, HttpSession session);

    AdminInfo getAdminInfoById(Integer adminId);

    PageResult<AdminPageVo> pageQueryInfo(AdminPageDTO pageDTO);

    void addAdmin(MarketAdmin admin);

    void updateById(MarketAdmin admin);

    void deleteById(Integer id);
}
